<template>
	<view class="box">
		<u--form
			labelPosition="left"
			:model="infoList">
				<u-form-item
					label="姓名:"
					prop="username"
					borderBottom
					leftIcon="photo"
					labelWidth="100"
					labelAlign="center"
					>
					
						<u--input
							v-model="infoList.username"
							border="none"
						></u--input>
					</u-form-item>
			
					<u-form-item
						label="姓名:"
						prop="username"
						borderBottom
						>
						
							<u--input
								v-model="infoList.username"
								border="none"
							></u--input>
						</u-form-item>
		</u--form>
	</view>
</template>

<script>
	export default{
		onLoad(option){
			let title = option.title
			if(option.id){
				console.log(option.id)
			}
		
			wx.setNavigationBarTitle({
				title:title
			})
		},
		data(){
			return{
				infoList: {
					username:""
				},
			}
		}
	}
</script>

<style lang="scss">
	.box{
		padding: 0 30rpx;
	}
</style>